#ifndef I2C_SOFT_GPIO_H

#define I2C_SOFT_GPIO_H

#include "stm32f10x.h"

static uint16_t scl;
static uint16_t sda;

void init_gpio(uint16_t scl_pin,uint16_t sda_pin);

void write(const uint8_t slave_address,const uint8_t * data,const uint8_t data_count);

uint8_t read(const uint8_t slave_address,const uint8_t command);

void readNByte(const uint8_t slave_address,const uint8_t command,uint8_t * dest_data,uint8_t nByte);

#endif
